package com.nahan.secondapplication.Jiugongge;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.nahan.myphoto.ViewPicture.TestImageLoader;
import com.nahan.myphoto.ViewPicture.previewlibrary.ZoomMediaLoader;
import com.nahan.secondapplication.R;

/**
 * @describe: 描述：九宫格显示图片
 * @time: 2020-9-1 16:16:34
 */
public class JiugonggeActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_jiugongge);
        ZoomMediaLoader.getInstance().init(new TestImageLoader());//ZoomMediaLoader初始化   图片查看的
        findViewById(R.id.btn_fill_style).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(JiugonggeActivity.this, FillStyleActivity.class);
                startActivity(intent);
            }
        });

        findViewById(R.id.btn_grid_style).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(JiugonggeActivity.this, GridStyleActivity.class);
                startActivity(intent);
            }
        });
    }
}
